home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / utilities / misc / shelltimer.lzh / ShellTimer.h < prev    next >
C/C++ Source or Header  |  1992-02-04  |  938b  |  50 lines

  1. /***
  2. ****    SHELLTIMER.H
  3. ****
  4. ****    Creation:        John Lindwall
  5. ****                    19 Jan 1992
  6. ****
  7. ****    Description:    Header file for ShellTimer programs.
  8. ****
  9. ****    Overhauls:
  10. ***/
  11.  
  12. #ifndef STOPWATCH_H
  13.  
  14. #ifdef MWDEBUG
  15. #include "memwatch.h"        /* Tests for memory leaks */
  16. #endif
  17.  
  18. #include <devices/timer.h>
  19.  
  20. struct ST_Message
  21. {
  22.     struct Message msg;
  23.     int code;
  24.     int requestID;
  25.     struct timeval startTime;
  26.     struct timeval endTime;
  27.     struct timeval diffTime;
  28. };
  29.  
  30. /* Name of the daemon's well-known message port */
  31. #define ST_PORT            "ShellTimerDaemon"
  32.  
  33. /* Commands - stored in code field */
  34. #define ST_START        1
  35. #define ST_STOP            2
  36. #define ST_CANCEL        3
  37. #define ST_QUIT            4
  38. #define ST_TOGGLE        5    /* Either START or STOP */
  39. #define ST_HELP            6
  40. #define ST_QUERY        7
  41.  
  42. /* Replies - stored in code field */
  43. #define ST_OK                0
  44. #define ST_ERR                -1
  45. #define ST_ERR_NO_PENDING    -2
  46. #define ST_TIMEWARP            -3        /* Time has reversed its mighty tide? */
  47.  
  48. #define STOPWATCH_H
  49. #endif
  50.